<?php

class Home extends Controller {

	function Home()
	{
            parent::Controller();
            $this->load->model('Model_controlpanel');
	}
	
	function index($complete=false)
	{
            $data['complete'] = $complete;

            // get common page components
            $data['header'] = $this->load->view('header', '', true);
            $data['footer'] = $this->load->view('footer', '', true);

            // get app key & receiver url
            $application_key = $this->Model_controlpanel->getApplicationKey();
            $data['appkey'] = $application_key['appkey'];

            // get domains
            $data['domains'] = $this->Model_controlpanel->getDomains();

            // get views
            $data['controlPanelContent'] = $this->load->view('controlPanelContent', $data, true);
            $data['content'] = $this->load->view('home', '', true);

            $this->load->view('page', $data);
	}
}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */